package com.wakala.employment.core.bean;

import android.os.Looper;

/**
 * 事件
 *
 * @author xx
 * @Date 2017-5-16 上午11:48:45
 */
public class Event {

    private String EventName;
    private String Content;

    public Event(String eventName, String content) {
        EventName = eventName;
        Content = content;
    }

    public String getEventName() {
        return EventName;
    }

    public String getContent() {
        return Content;
    }

    public Event setEventName(String eventName) {
        EventName = eventName;
        return this;
    }

    public Event setContent(String content) {
        Content = content;
        return this;
    }

    @Override
    public String toString() {
        return "携带的数据： {EventName:" + EventName + ", Content:" + Content + "}, 当前线程状态：" + getLooperStatus();
    }

    public static String getLooperStatus() {
        return Looper.myLooper() == Looper.getMainLooper() ? "主线程" : "子线程";
    }

}